package gcb.metalsys.enums;

import gcb.metalsys.base.ResultUtil;
import gcb.metalsys.base.dto.ResultDTO;
import lombok.Getter;

/**
 * @author ReMidDream
 * @date 2018/10/23 20:55
 **/
@Getter
public enum PriceEnum {

    SELL(0,"售价"),
    BUY_BACK(1,"回购价")
    ;

    private Integer code;

    private String message;

    PriceEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public ResultDTO show() {
        return ResultUtil.Error(this.code.toString(),this.message);
    }
}
